Fix registration of profiler DBus api
authorMatthias Clasen <mclasen@redhat.com>
Tue, 14 May 2019 11:59:02 +0000 (11:59 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 May 2019 12:06:55 +0000 (12:06 +0000)
gtk/gtkapplication.c

index 2a804587b7b0c3f2fcb4ecf4063d6e9df4ec3402..69e8e3b85cf91427d8119c3f10cd39b480ceda36 100644 (file)
@@ -689,7 +689,8 @@ gtk_application_dbus_register (GApplication     *application,
                                const char       *obect_path,
                                GError          **error)
 {
-  GtkApplicationImplDBus *dbus = (GtkApplicationImplDBus *) application;
+  GtkApplicationPrivate *priv = gtk_application_get_instance_private (application);
+  GtkApplicationImplDBus *dbus = (GtkApplicationImplDBus *) priv->impl;
   GDBusInterfaceVTable vtable = {
     sysprof_profiler_method_call,
     NULL,